import request from '@/router/axios'

// 获取应用
export const app = (params) => {
  return request({
    url: '/access/app',
    method: 'POST',
    params
  })
}

// 获取应用集
export const appSet = (params) => {
  return request({
    url: '/access/appSet',
    method: 'POST',
    params
  })
}

// 获取业务体系
export const getBusinessSystem = (params) => {
  return request({
    url: '/access/getBusinessSystem',
    method: 'POST',
    params
  })
}

// 获取显示样式
export const getDisplayStyle = (params) => {
  return request({
    url: '/access/getDisplayStyle',
    method: 'POST',
    params
  })
}

// 新增或修改
export const edit = (data) => {
  return request({
    url: '/backend/backlogTask/edit',
    method: 'POST',
    data
  })
}

// 启用或停用
export const enable = (params) => {
  return request({
    url: '/backend/backlogTask/enable',
    method: 'POST',
    params
  })
}

// 获取待办任务数据
export const getById = (params) => {
  return request({
    url: '/backend/backlogTask/getById',
    method: 'POST',
    params
  })
}

// 分页列表
export const getPage = (data) => {
  return request({
    url: '/backend/backlogTask/getPage',
    method: 'POST',
    data
  })
}
